package cn.picclife.mwx.common.web.base;

import java.io.Serializable;

/** 
* @ClassName: BaseResult 
* @Package cn.picclife.mwx.web.base 
* @Description: Ajax返回结果lei
* @Company:PICCLife
* @author Levi.Wang
* @date 2016年10月11日 上午8:36:34 
*/
public class BaseResult implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 操作成功  */
    public static final String SUCCESS = "00000";

    /** 系统级错误  */
    public static final String SYS_ERROR = "10000";

    /** 操作错误 */
    public static final String BIZ_ERROR = "20000";

    /** 用户未登录 */
    public static final String SESSION_ERROR = "21001";

    /** 用户无权限 */
    public static final String AUTH_ERROR = "21002";


    /** 状态码  */
    private String ret;
    /** 错误信息  */
    private String msg;
    /** 返回数据 */
    private Object data;
    /** 返回数据量 */
    private Integer count;
    /** 用户权限 */
    private String auth;

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    @Override
    public String toString() {
        return "BaseResult [ret=" + ret + ", msg=" + msg + ", data=" + data + ", count=" + count
                + "]";
    }
}
